package icedot.library.common.filesystem;

public class FileInfo
{
	public static final int s_typeUnkown = 0;		//未知类型
	public static final int s_typeDoc = 1;			//文档类型	
	public static final int s_typePic = 2;			//图片类型
	public static final int s_typeVidio = 3;		//视频类型
	public static final int s_typeDocLock = 4;		//文档加密类型	
	public static final int s_typePicLock = 5;		//图片加密类型
	public static final int s_typeVidioLock = 6;	//视频加密类型
	
	public boolean 			_isSelect;		//是否选中
	public String 			_fileName;		//文件名
	public String 			_fullPath;		//文件路径
	public int 				_type;			//类型
	public int 				_resourceID;    //资源ID

	public FileInfo()
	{
		_isSelect = false;
		_fileName = "";
		_fullPath = "";
		_type = s_typeUnkown;
		_resourceID = 0;
	}
	
	public String getFileType()
	{
		switch(_type)
		{
		case s_typeDoc:
			return "文档";
		case s_typePic:
			return "图片";
		case s_typeVidio:
			return "视频";
		case s_typeDocLock:
			return "文档加密";
		case s_typePicLock:
			return "图片加密";
		case s_typeVidioLock:
			return "视频加密";
		default:
			return "未知类型";
		}
	}
}	
